x86: hvm: Allow configuration of the size of the mmio_hole.
authorDon Slutz <dslutz@verizon.com>
Tue, 21 Oct 2014 12:42:26 +0000 (08:42 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 23 Oct 2014 10:47:49 +0000 (11:47 +0100)
commit2d927fc41b8e130b3b8910e4442d4691111d2ac7
treeaf6fcb50f3a7b73c7beb5dd304e3cee792b0748a
parent5fb8a70f45f4e14aab9b0900e8179ddfb14240a7
x86: hvm: Allow configuration of the size of the mmio_hole.

If you add enough PCI devices then all mmio may not fit below 4G
which may not be the layout the user wanted. This allows you to
increase the below 4G address space that PCI devices can use and
therefore in more cases not have any mmio that is above 4G.

There are real PCI cards that do not support mmio over 4G, so if you
want to emulate them precisely, you may also need to increase the
space below 4G for them. There are drivers for these cards that also
do not work if they have their mmio space mapped above 4G.

This allows growing the MMIO hole to the size needed.

This may help with using pci passthru and HVM.

In the tools this is named mmio_hole_memkb.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- fixed build error in xl_cmdimpl.c with s/%PRIu64/%ld/.
         Reworded title ]
docs/man/xl.cfg.pod.5
tools/firmware/hvmloader/config.h
tools/firmware/hvmloader/pci.c
tools/libxl/libxl.h
tools/libxl/libxl_create.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_types.idl
tools/libxl/xl_cmdimpl.c